package com.itheima.service.impl;

import com.itheima.pojo.User;
import com.itheima.service.ConsumerService;
import org.springframework.stereotype.Component;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  10:16 2020/7/21</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/7/21      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
//@Service
@Component
public class ConsumerServiceImpl implements ConsumerService {
    /*
        熔断方法
     */
    @Override
    public User findUserById(Integer id) {
        User user = new User();
        user.setId(id);
        user.setNote("默认熔断方法");
        return user;
    }
}
